package com.yenlien.traceyun.plant.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
    种植消息
 */
@Entity
@Table(name = "t_plant_news")
public class PlantNews extends BaseEntity {

    private String companyId;

    @ApiModelProperty(value = "内容")
    @Column(columnDefinition = "longtext")
    private String content;

    @ApiModelProperty(value = "1=超时预警提醒, 2=任务临期提醒")
    private String type;

    @ApiModelProperty(value = "阅读状态(true=已读, false=未读)")
    private boolean readState;

    // 事件关联ID
    private String correlationId;

    private String createTime;

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }


    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isReadState() {
        return readState;
    }

    public void setReadState(boolean readState) {
        this.readState = readState;
    }

    public String getCorrelationId() {
        return correlationId;
    }

    public void setCorrelationId(String correlationId) {
        this.correlationId = correlationId;
    }
}
